export let formRules = {
  years:[
    {required:true,message:"请输入年龄",trigger:"blur"},
    {type:'string',transform(value){
      return  +value > 10 && +value < 100?null:false
    },message:"年龄不符合区间"}
  ],
  height:[
    {required:true,message:"请输入身高",trigger:"blur"},
    {type:'string',transform(value){
      return  +value > 100 && +value < 250?null:false
    },message:"身高不符合区间"}
  ],
  weight:[
    {required:true,message:"请输入体重",trigger:"blur"},
    {type:'string',transform(value){
      return  +value > 100 && +value < 250?null:false
    },message:"体重不符合区间"}
  ],
  address:[
    {required:true,message:"请输入地址",trigger:"blur"},
  ],
  name:[
    {required:true,message:"请输入姓名"}
  ],
  phone:[
    {required:true,message:"请输入收货人手机"},
    {type:'string',transform(value){
      return  /^1[34578]\d{9}$/.test(value.toString())?null:false
    },message:"手机号码不符合"}
  ]
};

export let cars = window.cgiData.page.userInfor.cars;
